package com.zbs.framework.dao.function.service.model;

import com.zbs.framework.dao.permission.entity.Permission;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

/**
 * 权限基础信息
 */
@Getter
@Setter
@NoArgsConstructor
public class PermissionBasic {

    private Long id;
    /**
     * 所属服务名
     */
    private String serviceName;
    /**
     * 权限名
     */
    private String name;

    public PermissionBasic(Permission p) {
        this.id = p.getId();
        this.serviceName = p.getServiceName();
        this.name = p.getName();
    }
}
